/**
 * @author Maximilian Csuk
 * @author Bernhard Denner
 * @author Konrad Paumann
 */
public class MyString implements KeyType<MyString> {
	private String s;
	
	public MyString(String s) {
		this.s = s;
	}
	/**
	 * Checks if this equals that
	 * Returns true if yes, false otherwise 
	 */
	public boolean equal(MyString that) {
		return s.equals(that.s);
	}
	/**
	 * Checks if this is less than that
	 * Returns true if yes, false otherwise
	 */
	public boolean less(MyString that) {
		int result = 0;
		result = s.compareTo(that.s);
		if (result < 0) {
			return true;
		} else {
			return false;
		}
	}
	/**
	 * Returns a String representation of this MyString
	 */
	public String toString() {
		return s;
	}
}
